﻿using PoemGame.Domain.GameAggregate;

namespace PoemGame.Domain.Services
{
    /// <summary>
    /// 创建DomainService的抽象工厂接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IDomainServiceFactory<T> where T : IDomainService
    {
        /// <summary>
        /// 根据游戏类型获取相应的服务
        /// </summary>
        /// <param name="gamePlayType"></param>
        /// <returns></returns>
        T GetService(GameType gamePlayType);
    }
}
